projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc16a6c
)
ColorChooser: Fix an off-by-one error
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 9 Oct 2014 04:12:46 +0000
(
00:12
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 9 Oct 2014 04:12:46 +0000
(
00:12
-0400)
We were not filling the last free space in the custom color
row.
gtk/gtkcolorchooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcolorchooserwidget.c
b/gtk/gtkcolorchooserwidget.c
index 58e0c6c9cc2639292c7e1b3be8cabb1241c3b97b..1076943b3d9d4bb09b7769beb6d5a4b04313b12e 100644
(file)
--- a/
gtk/gtkcolorchooserwidget.c
+++ b/
gtk/gtkcolorchooserwidget.c
@@
-570,7
+570,7
@@
gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
connect_custom_signals (p, cc);
gtk_container_add (GTK_CONTAINER (box), p);
- if (i ==
8
)
+ if (i ==
9
)
break;
}
g_variant_unref (variant);
@@
-734,7
+734,7
@@
add_custom_color (GtkColorChooserWidget *cc,
GList *children;
children = gtk_container_get_children (GTK_CONTAINER (cc->priv->custom));
- if (g_list_length (children) >=
8
)
+ if (g_list_length (children) >=
9
)
{
last = g_list_last (children)->data;
gtk_widget_destroy (last);